package com.hzh.entity;

/**
 * 封装返回结果。
 * @author xiaohua
 */
public class OperationResult {
    
    private String data = "";
    
    private boolean success = true;
    
    private String errorMsg = "";
    
    private String userId;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getData() {
        return data;
    }
    
    public void setData(String data) {
        this.data = data;
    }
    
    public boolean isSuccess() {
        return success;
    }
    
    public void setSuccess(boolean success) {
        this.success = success;
    }
    
    public String getErrorMsg() {
        return errorMsg;
    }
    
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
    
    /**
     * 默认返回结果
     */
    public static final OperationResult DEFAULT_SUCCESS = new OperationResult();
}
